<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>三维</title>
		<style type="text/css">
			body/* 透视 */{
				perspective: 1000px;
				perspective-origin:50% 50%;
			}
			div{
				width: 400px;
				height: 400px;
			}
			.box1{
				/* 给盒子开启3D空间效果 */
				margin: 200px auto;
				transform-style: preserve-3d;
				background-color: rgba(0,255,255,0.4);
				/* opacity: 0.5; */		/* 继承 */
			}
			.box2{
				transform: rotateX(45deg);
				background-color: pink;
			}
		</style>
	</head>
	<body>
		<div class="box1">
			<div class="box2"></div>
		</div>
	</body>
</html>
